package com.ruoyi.tranShort.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tranShort.mapper.ShortBaseStationDerviceMapper;
import com.ruoyi.tranShort.domain.ShortBaseStationDervice;
import com.ruoyi.tranShort.service.IShortBaseStationDerviceService;

/**
 * 基站管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-09
 */
@Service
public class ShortBaseStationDerviceServiceImpl implements IShortBaseStationDerviceService 
{
    @Autowired
    private ShortBaseStationDerviceMapper shortBaseStationDerviceMapper;

    /**
     * 查询基站管理
     * 
     * @param id 基站管理主键
     * @return 基站管理
     */
    @Override
    public ShortBaseStationDervice selectShortBaseStationDerviceById(Long id)
    {
        return shortBaseStationDerviceMapper.selectShortBaseStationDerviceById(id);
    }

    /**
     * 查询基站管理列表
     * 
     * @param shortBaseStationDervice 基站管理
     * @return 基站管理
     */
    @Override
    public List<ShortBaseStationDervice> selectShortBaseStationDerviceList(ShortBaseStationDervice shortBaseStationDervice)
    {
        return shortBaseStationDerviceMapper.selectShortBaseStationDerviceList(shortBaseStationDervice);
    }

    /**
     * 新增基站管理
     * 
     * @param shortBaseStationDervice 基站管理
     * @return 结果
     */
    @Override
    public int insertShortBaseStationDervice(ShortBaseStationDervice shortBaseStationDervice)
    {
        shortBaseStationDervice.setCreateTime(DateUtils.getNowDate());
        return shortBaseStationDerviceMapper.insertShortBaseStationDervice(shortBaseStationDervice);
    }

    /**
     * 修改基站管理
     * 
     * @param shortBaseStationDervice 基站管理
     * @return 结果
     */
    @Override
    public int updateShortBaseStationDervice(ShortBaseStationDervice shortBaseStationDervice)
    {
        return shortBaseStationDerviceMapper.updateShortBaseStationDervice(shortBaseStationDervice);
    }

    /**
     * 批量删除基站管理
     * 
     * @param ids 需要删除的基站管理主键
     * @return 结果
     */
    @Override
    public int deleteShortBaseStationDerviceByIds(Long[] ids)
    {
        return shortBaseStationDerviceMapper.deleteShortBaseStationDerviceByIds(ids);
    }

    /**
     * 删除基站管理信息
     * 
     * @param id 基站管理主键
     * @return 结果
     */
    @Override
    public int deleteShortBaseStationDerviceById(Long id)
    {
        return shortBaseStationDerviceMapper.deleteShortBaseStationDerviceById(id);
    }

}
